package com.class06.ioc01;

public class ClientService {
    private static ClientService clientService = new ClientService();
    private ClientService() {}
    public static ClientService getInstance() {
//        静态方法无法访问非静态变量，所以需要先创建对象
        return clientService;
    }

}
